package com.huxuesong.prcc.dto.dtomapper;

import com.huxuesong.prcc.dto.UmsMemberDTO;
import com.huxuesong.prcc.ums.entity.UmsMember;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(componentModel="spring")
public interface UmsMemberDTOMapper {

    UmsMemberDTOMapper MAPPER = Mappers.getMapper(UmsMemberDTOMapper.class);

//    @Mappings({
//            @Mapping(source = "username", target = "username"),
//            @Mapping(source = "password", target = "password")
//    })
    UmsMember toUmsMember(UmsMemberDTO umsMemberDTO);

}
